<!DOCTYPE html>
<html lang="en-us">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Haiku Animator</title>
  <link rel="stylesheet" href="./public/stylesheets/global.css">
  <link rel="stylesheet" href="./public/stylesheets/codemirror.css">
  <link rel="stylesheet" href="./public/stylesheets/codemirror-haiku.css">
  <link rel="stylesheet" href="./public/stylesheets/icons.css">
  <link rel="stylesheet" href="./public/stylesheets/resizer.css">
  <link rel="stylesheet" type="text/css" href="../../node_modules/react-selectize/dist/index.css">
  <link rel="stylesheet" href="../../node_modules/haiku-ui-common/css/tooltips.css" />
</head>
<body style="position:relative;">
  <div id="mount" style="width: 100%; height: 100%; overflow: hidden;"></div>
  <script>
    window.eval = global.eval = function () {
      // noop: eval is forbidden
    }
  </script>
  <script src="../../node_modules/raven-js/dist/raven.js"></script>
  <script>
    require('../../node_modules/haiku-serialization/src/utils/LoggerInstance').view = 'creator';
    require('./lib/entry')
  </script>
<script>
  // Monaco uses a custom amd loader that over-rides node's require.
  // Keep a reference to node's require so we can restore it after executing the amd loader file.
  var nodeRequire = global.require;
</script>
<script src="../../node_modules/monaco-editor/min/vs/loader.js"></script>
<script>
  // Save Monaco's amd require and restore Node's require
  var amdRequire = global.require;
  global.require = nodeRequire;
</script>
<script>
  // require node modules before loader.js comes in
  var path = require('path');
  function uriFromPath(_path) {
    var pathName = path.resolve(_path).replace(/\\/g, '/');
    if (pathName.length > 0 && pathName.charAt(0) !== '/') {
      pathName = '/' + pathName;
    }
    return encodeURI('file://' + pathName);
  }
  amdRequire.config({
    baseUrl: uriFromPath(path.join(__dirname, '../../node_modules/monaco-editor/min'))
  });
  // workaround monaco-css not understanding the environment
  self.module = undefined;
  // workaround monaco-typescript not understanding the environment
  self.process.browser = true;
  amdRequire(['vs/editor/editor.main'], function() {
    window.monaco = monaco
  });
</script>
</body>
</html>
